#ifndef STUDENTLOGINSUCCESS_H
#define STUDENTLOGINSUCCESS_H

#include <QWidget>
//#include "studentlogin.h"
#include "StudentInfo.h"
#include <QString>

namespace Ui {
class StudentLoginSuccess;
}

class StudentLoginSuccess : public QWidget
{
    Q_OBJECT

public:
    explicit StudentLoginSuccess(QWidget *parent = 0);
    ~StudentLoginSuccess();

private:
    Ui::StudentLoginSuccess *ui;
    // 从学生登录界面获取到的学生信息
    StudentInfo* stuInfo;

private slots:
    // 从学生登录界面获取学生信息
    void getInfo(StudentInfo* s1);
    // 点击查看信息按钮
    void on_checkInfo_clicked();
    // 返回主界面
    void on_back2main_clicked();
    // 返回登录界面
    void on_back2login_clicked();
    // 点击清空展示框按钮
    void on_clearInfo_clicked();

signals:
    // 返回主界面信号
    void back2main();
    // 返回登录界面信号
    void back2login();
};

#endif // STUDENTLOGINSUCCESS_H
